package com.qf.common.exception;

import com.qf.common.vo.ResponseCode;
import lombok.Getter;

@Getter
public class BaseException extends RuntimeException {
    private ResponseCode responseCode;

    /**
     * 维护的角度
     *
     * @param responseCode
     */
    public BaseException(ResponseCode responseCode) {
        super(responseCode.getMsg());
        this.responseCode = responseCode;
    }
}
